<?php
namespace App\Http\Controllers\Client\ClientUser;
use App\Http\Controllers\BaseController;
use App\Services\ClientUser\ClientUserService;
use Illuminate\Http\Request;

class LoginController extends BaseController
{
    private ClientUserService $service;
    public function __construct()
    {
        $this->service = new ClientUserService();
    }

    public function login(Request $request){
        return $this->service->setParams($request->all())->login();
    }

    /**
     * 开发登录
     * @param Request $request
     * @return array
     */
    public function devLogin(Request $request){
        return $this->service->setParam('client_user_id',$request->input('client_user_id'))->devLogin();
    }
}
